<div class="turns form">
<?php echo $this->Form->create('Turn');?>
	<fieldset>
 		<legend><?php __('Modificación del Turno'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('fecha', array( 'label' => 'Fecha del Turno'
								, 'dateFormat' => 'DMY'
								, 'minYear' => date('Y') 
								, 'maxYear' => date('Y') + 5 
								,'interval' => 30
								));

		echo $this->Form->input('person_id',array( 'type' => 'hidden', 'value' => $id_paciente));
		echo $this->Form->input('doctor_id');
		echo $this->Form->input('stateturn_id', array( 'label' => 'Estado'));

		echo $this->Form->label("Sobreturno?"); 
		echo $this->Form->select('sobreturno',array('S'=>'Si','N'=>'No'),array( 'selected' => 'N'));

	?>
	</fieldset>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<td><?php echo $this->Form->end(__('Modificar', true));?></td>
		<td><br><br><?php echo $this->Html->link("Cancelar","/people/view/".$id_paciente."/99",array('escape' => false, 'class' => 'link_cancelar') );?></td>
	</tr>
	</table>
</div>